package BehavioralModel.StrategyPattern;

/**
 * 打折收费类
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-12-07 15:11:00
 */
public class CashRebate implements CashStrage {

    private double moneyRebate =1d;

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * moneyRebate;
    }
}
